home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / business / aesti967.zip / -INSTALL.BAT < prev    next >
DOS Batch File  |  1996-07-07  |  4KB  |  128 lines

  1. echo off
  2. cls
  3.  
  4. if (%1)==() goto Help
  5.  
  6. if exist %1:\nul goto DriveOK
  7. echo.
  8. echo           ┌─────────────────────────────────────────────────┐
  9. echo           │          Invalid drive name was used            │
  10. echo           └─────────────────────────────────────────────────┘
  11. echo.
  12. echo    Typical useage to install onto hard disk C use ; -INSTALL C
  13. echo.
  14. goto end
  15.  
  16.  
  17. :DriveOK
  18. if exist %1:\esti\nul goto AlreadyInstalled
  19. goto InstallNew
  20.  
  21.  
  22. :AlreadyInstalled
  23. echo.
  24. echo           ┌─────────────────────────────────────────────────┐
  25. echo           │      WARNING ! - directory already exists       │
  26. echo           └─────────────────────────────────────────────────┘
  27. echo.
  28. echo    There is already a directory called %1:\ESTI, any existing files in
  29. echo    this directory will be overwritten if you continue
  30. echo.
  31. echo    To cancel installation keep the CTRL key pressed down and then press
  32. echo    C, enter Y when prompted to terminate the batch file
  33. echo.
  34. echo    To continue installation press any key
  35. echo.
  36. pause>nul
  37. cls
  38.  
  39. :InstallNew
  40. mkdir %1:\esti
  41.  
  42. if exist %1:\esti\nul goto Install
  43. echo.
  44. echo         ┌─────────────────────────────────────────────────────┐
  45. echo         │   Unknown Error Occurred - Software NOT installed   │
  46. echo         └─────────────────────────────────────────────────────┘
  47. echo.
  48. echo    May be invalid drive name, path or disk media
  49. echo.
  50. echo    Please note that this batch file MUST be run from a floppy disk with
  51. echo    the software on it, you must change to the floppy drive before using
  52. echo    this batch file
  53. echo.
  54. echo.
  55. goto End
  56.  
  57. :Install
  58. cls
  59. echo.
  60. echo         ┌────────────────────────────────────────────────────────┐
  61. echo         │       Installing the Software - please wait            │
  62. echo         └────────────────────────────────────────────────────────┘
  63. copy *.* %1:\esti
  64. %1:
  65. cd \esti
  66. cls
  67.  
  68. if exist aesti.exe goto InstallOK
  69.  
  70. echo.
  71. echo    ┌────────────────────────────────────────────────────────────────────┐
  72. echo    │   Software did NOT install correctly - try a manual installation   │
  73. echo    └────────────────────────────────────────────────────────────────────┘
  74. goto Manual
  75.  
  76. :InstallOK
  77. echo.
  78. echo           ┌─────────────────────────────────────────────────┐
  79. echo           │      Software was successfully installed !      │
  80. echo           └─────────────────────────────────────────────────┘
  81. echo.
  82. echo      To start the program from the DOS prompt you must first change
  83. echo      to %1:\ESTI, type in AESTI and press return
  84. echo.
  85. echo      To run the software from within Windows v3.xx - from the DOS
  86. echo      prompt type in -WINDOWS and press return, follow the instructions
  87. echo      to install the software under Windows.
  88. echo.
  89. echo      If you are using a GUI or other shell then the working or default
  90. echo      directory must be set to %1:\ESTI or you must change to this
  91. echo      directory before starting the software
  92. echo.
  93. echo      AEsti will now be started - press CTRL+C if you do NOT want to
  94. echo      start AEsti
  95. pause>nul
  96. aesti
  97. goto End
  98.  
  99. :Help
  100. echo     ░░░▄  ░░░░▄  ░░▄   ░░░░░░░░▄  ░░░░░░░░░░▄   ░░░░░░░░▄  ░░▄       ░░▄
  101. echo      ▀▀▀  ░░█░░▄ ░░█  ░░█▀▀▀▀▀▀▀   ▀▀▀░░█▀▀▀▀  ░░█▀▀▀▀░░█  ░░█       ░░█
  102. echo     ░░░▄  ░░█ ░░▄░░█  ░░░░░░░░░▄      ░░█      ░░░░░░░░░█  ░░█       ░░█
  103. echo     ░░░█  ░░█  ░░░░█   ▀▀▀▀▀▀░░█      ░░█      ░░█▀▀▀▀░░█  ░░█       ░░█
  104. echo     ░░░█  ░░█   ░░░█  ░░░░░░░░░█      ░░█      ░░█    ░░█  ░░░░░░░░▄ ░░░░░░░░▄
  105. echo      ▀▀▀   ▀▀    ▀▀▀   ▀▀▀▀▀▀▀▀▀       ▀▀       ▀▀     ▀▀   ▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀
  106. echo   Installs from Floppy to Hard Disk
  107. echo   ─────────────────────────────────
  108. echo    Use -INSTALL Destination where Destination is the drive name, for example
  109. echo    to install to a C drive use  -INSTALL C
  110. echo.
  111. echo    A directory called \ESTI will be made on this destination drive and all
  112. echo    files copied into it. Before running this batch file please change to the
  113. echo    directory and drive where it is located.
  114. echo.
  115. echo    To upgrade from an old version of the software please use the -EXIST.BAT
  116. echo    batch file
  117.  
  118. :Manual
  119. echo.
  120. echo.  Manual Installation
  121. echo   ───────────────────
  122. echo    Make a directory on the desired destination drive, copy all files from
  123. echo    this disk to the new directory. change to this directory and then start
  124. echo    the software by typing AESTI and pressing return
  125. echo.
  126.  
  127. :End
  128.